{include file="public/header" /}
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>任务详情</h5>
                </div>
                <div class="ibox-content layui-form">
                    <div class="layui-row layui-col-space10 layui-form-item">

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">任务标题：</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input" value="{$task.task_title}" disabled>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">区域：</label>
                            <div class="layui-input-block">
                                <textarea class="layui-textarea" disabled>{$task.task_district_names}</textarea>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">分类：</label>
                            <div class="layui-input-block">
                                {if ($task.task_type == 1) }
                                <input type="text" class="layui-input" value="文字图片" disabled>
                                {/if}
                                {if ($task.task_type == 2) }
                                <input type="text" class="layui-input" value="文字视频" disabled>
                                {/if}
                                {if ($task.task_type == 3) }
                                <input type="text" class="layui-input" value="文字链接" disabled>
                                {/if}
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">提交用户：</label>
                            <div class="layui-input-block">
                                <textarea class="layui-textarea" disabled>{$task.finish_user}</textarea>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">转发次数：</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input" value="{$task.task_share_number}" disabled>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">发布时间：</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input" value="{$task.task_time}" disabled>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">文字素材：</label>
                            <div class="layui-input-block">
                                <textarea class="layui-textarea" disabled>{$task.task_content}</textarea>
                            </div>
                        </div>

                        {if ($task.task_type == 1)}
                        {if count($task.task_images) > 0}
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md10">
                            <label class="layui-form-label">图集素材：</label>
                            <div class="layui-input-block">
                                <div class="layui-upload-list img-circle">
                                    {volist name='task.task_images' id='vo'}
                                    <img class="layui-append-img" src="{$vo}">
                                    {/volist}
                                </div>
                            </div>
                        </div>
                        {/if}
                        {/if}

                        {if ($task.task_type == 2)}
                        {if ($task.task_video)}
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">视频素材：</label>
                            <div class="layui-input-block">
                                <video width="320" height="240" controls>
                                    <source src="{$task.task_video}" type="video/mp4">
                                </video>
                            </div>
                        </div>
                        {/if}
                        {/if}

                        {if ($task.task_type == 3)}
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">链接：</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input" value="{$task.task_link}" disabled>
                            </div>
                        </div>
                        {/if}

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <div class="layui-input-block">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{include file="public/footer" /}
</body>
</html>
